package com.example.demo.tools;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: su
 * Date: 2023-04-08
 * Time: 14:24
 */
@Data
public class ResponseBodyMessage<T> {
    // 状态码
    private int code;

    // 信息
    private String message;

    // 数据
    private T data;

    public ResponseBodyMessage(int status, String message, T data) {
        this.code = status;
        this.message = message;
        this.data = data;
    }
}
